class HomeController < ApplicationController
  layout 'home'
  set_tab :index, :site_nav
  set_tab :about, :site_nav, :only => [:about]
  set_tab :help, :site_nav, :only => [:help]
  set_tab :get_apps, :site_nav, :only => [:get_apps]
  
  def index
    @android = AppVersion.latest_release_by_name("ymtv_android")
    @ios = AppVersion.latest_release_by_name("ymtv_ios")
  end

  def get_apps
    @android = AppVersion.latest_release_by_name("ymtv_android")
    @ios = AppVersion.latest_release_by_name("ymtv_ios")
  end

  def help
  end

  def about
  end

  def contact
  end

  def download
    @android = AppVersion.latest_release_by_name("ymtv_android")
    @ios = AppVersion.latest_release_by_name("ymtv_ios")
    render :layout => 'mobile'
  end

end
